package com.example.controll.shiping;

import com.example.config.R;
import com.example.service.shiping.shipingService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/shipingQuery")
public class shipingControll {
    @Resource
    private shipingService shipingService;

    @RequestMapping("/getType")
    public R getAll(int type){
        return new R(true,shipingService.getAll(type));
    }

    @RequestMapping("/getAll")
    public R getAll(){
        return new R(true,shipingService.findAll());
    }
}
